package o;

import com.huawei.appgallery.appcomment.impl.bean.GetCommentResBean.AppCommentInfo;
import com.huawei.appgallery.appcomment.impl.bean.GetReplyResBean;
import com.huawei.appgallery.appcomment.impl.bean.GetReplyResBean.ReplyComment;
import java.util.ArrayList;
import java.util.List;
import o.bds.c;

public class bdl extends bds {
    private AppCommentInfo ˊ;
    private int ˋ = 1;
    private List<ReplyComment> ˎ = new ArrayList();
    private boolean ˏ = false;
    private c ॱ = null;
    private int ॱॱ;

    public int ˎ() {
        return this.ॱॱ;
    }

    public void ˏ(int i) {
        this.ॱॱ = i;
    }

    public boolean ˊ() {
        return this.ˏ;
    }

    public void ˏ(boolean z) {
        this.ˏ = z;
    }

    public int ॱ() {
        return this.ˎ.size();
    }

    public AppCommentInfo ˏ() {
        return this.ˊ;
    }

    public ReplyComment ˊ(int i) {
        if (i >= this.ˎ.size() || i < 0) {
            return null;
        }
        return (ReplyComment) this.ˎ.get(i);
    }

    public int ˋ() {
        return this.ˋ;
    }

    public void ˎ(int i) {
        this.ˋ = i;
    }

    public void ˏ(c cVar) {
        this.ॱ = cVar;
    }

    public void ᐝ() {
        this.ˎ.clear();
        this.ˋ = 1;
        this.ॱ.onDataUpdated();
    }

    public List<ReplyComment> ʻ() {
        return this.ˎ;
    }

    public void ˋ(GetReplyResBean getReplyResBean) {
        if (getReplyResBean.ˎ() != null && getReplyResBean.ˎ().size() > 0) {
            this.ˎ.addAll(getReplyResBean.ˎ());
        }
        this.ˊ = getReplyResBean.ˏ();
        if (this.ॱ != null) {
            this.ॱ.onDataUpdated();
        }
    }
}
